
ropt=1
n=int(input("请输入一个数字"))
while n >= 1:
    ropt=ropt*n
    n=n-1
print(ropt)

goodlist=[{"name":"气泡水","price":2},{"name":"矿泉水","price":3}]

def goddlist(goodsname):
    for item in goodlist:
        if item["name"]==goodsname:
            return {"status":200,"msg":"商品存在","data":item}

    return {"status":400,"msg":"商品不存在"}
print(goddlist("气泡水"))


